package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.GroutingResult;
import com.ruoyi.zhgd.domain.bo.GroutingResultBo;
import com.ruoyi.zhgd.domain.vo.GroutingResultVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.GroutingResultDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 压浆结果Mapper接口
 *
 * @author zyb
 * @date 2023-09-11
 */
public interface GroutingResultMapper extends BaseMapperPlus<GroutingResultMapper, GroutingResult, GroutingResultVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "p.dept_id"),
    })
    List<Map> resultList(Page page,@Param("params") Map<String, Object> params);

//
//    List<GroutingResultVo> selectList(@Param("params") Map<String, Object> params);

    List<GroutingResultDto> statisticAnalysis(@Param("linkCode") String linkCode);

    /**
     * 压浆报表明细
     * @param params
     * @return
     */
    List<GroutingResultVo> reportDetail(@Param("params") Map<String, Object> params);

    /**
     * 压浆过程数据
     * @param bo
     * @return
     */
    String processData(@Param("bo") GroutingResultBo bo);
}
